﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace test.demo.Model.WM仓储管理
{
    /// <summary>
    /// 库存盘点结果表
    /// </summary>
    public class WM_Stock_Taking_Result:Entity<int>
    { 
            

            /// <summary>
            /// 盘点单ID
            /// </summary>
            public int TakingId { get; set; }

            /// <summary>
            /// 库存记录ID
            /// </summary>
            public int? MaterialStockId { get; set; }

            /// <summary>
            /// 产品ID
            /// </summary>
            public int ItemId { get; set; }

            /// <summary>
            /// 产品编码
            /// </summary>
            public string ItemCode { get; set; }

            /// <summary>
            /// 产品名称
            /// </summary>
            public string ItemName { get; set; }

            /// <summary>
            /// 规格型号
            /// </summary>
            public string Specification { get; set; }

            /// <summary>
            /// 单位
            /// </summary>
            public string UnitOfMeasure { get; set; }

            /// <summary>
            /// 单位名称
            /// </summary>
            public string UnitName { get; set; }

            /// <summary>
            /// 数量
            /// </summary>
            public int Quantity { get; set; } = 1;

            /// <summary>
            /// 盘点数量
            /// </summary>
            public int? TakingQuantity { get; set; }

            /// <summary>
            /// 仓库ID
            /// </summary>
            public int? WarehouseId { get; set; }

            /// <summary>
            /// 仓库编号
            /// </summary>
            public string WarehouseCode { get; set; }

            /// <summary>
            /// 仓库名称
            /// </summary>
            public string WarehouseName { get; set; }

            /// <summary>
            /// 库区ID
            /// </summary>
            public int? LocationId { get; set; }

            /// <summary>
            /// 库区编号
            /// </summary>
            public string LocationCode { get; set; }

            /// <summary>
            /// 库区名称
            /// </summary>
            public string LocationName { get; set; }

            /// <summary>
            /// 库位ID
            /// </summary>
            public int? AreaId { get; set; }

            /// <summary>
            /// 库位编号
            /// </summary>
            public string AreaCode { get; set; }

            /// <summary>
            /// 库位名称
            /// </summary>
            public string AreaName { get; set; }

            /// <summary>
            /// 盘点状态
            /// </summary>
            public string TakingStatus { get; set; } = "LOSS";

            /// <summary>
            /// 备注
            /// </summary>
            public string Remark { get; set; }


            /// <summary>
            /// 创建人
            /// </summary>
            public string? CreateBy { get; set; }

            /// <summary>
            /// 创建时间
            /// </summary>
            public DateTime? CreateTime { get; set; }

            /// <summary>
            /// 更新人
            /// </summary>
            public string? UpdateBy { get; set; }

            /// <summary>
            /// 更新时间
            /// </summary>
            public DateTime? UpdateTime { get; set; }
        }
    }

